package net.csdn.business.common.domain.request.discuss;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName EmailPushDiscussDTO
 * @Description zhangyl
 * @Author zhangyl
 * @Date 2023/8/2 14:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmailPushDiscussDTO implements Serializable {

    /** 通知用户邮箱地址 **/
    @NotNull(message = "userIds不能为空")
    private List<String> commentAts;

    /** 讨论标题 **/
    @NotBlank(message = "title不能为空")
    private String title;

    /** 讨论内容 **/
    @NotBlank(message = "content不能为空")
    private String content;

    /** 当前发起人id **/
    @NotBlank(message = "actionUid不能为空")
    private String actionUid;

    @NotBlank(message = "sourceId不能为空")
    private String sourceId;
    @NotNull(message = "sourceType不能为空")
    @Range(min = 1, max = 2, message = "sourceType不合法")
    private Integer sourceType;
    @NotBlank(message = "serialNumber不能为空")
    private String serialNumber;
}